<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <script>
      function $(Selector) {
        return document.querySelector(Selector)
      }
      function $$(Selector) {
        return document.querySelectorAll(Selector)
      }
      var ps = $$('p')
      console.log(ps)
    </script>
  </body>
</html>
